package org.example.ymcc.feignclient;

import org.example.ymcc.feignclient.fallback.MediaFeignClientFallbackFactory;
import org.example.ymcc.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-media",fallbackFactory = MediaFeignClientFallbackFactory.class)
public interface MediaFeignClient {
    @GetMapping("/mediaFile/video/{courseId}")
    public JsonResult getVideo(@PathVariable("courseId")Long courseId);
}
